<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="../css/element.css">
    <link rel="stylesheet" href="../css/main.css">
    <link rel="stylesheet" href="../css/login_register/register.css">
    <title>绑定手机号</title>
</head>

<body>
    <iframe src="register_header.html" frameborder="0" style="width:100%;height:100px;margin-bottom:-4px;border-bottom: 1px solid rgba(0,0,0,0.15);"></iframe>
    <div id="app" v-cloak>

        
         <!-- 注册协议 -->

         <div class="deal_mask" v-show='deal_mask'>
            <div class="deal_popup">
                <div class="deal_header">
                    用户注册协议和隐私政策
                </div>
                <div class="deal_container">
                    111
                </div>
                <div class="deal_btnwrap">
                    <div class="deal_cancel fl">
                        取消
                    </div>
                    <div class="deal_confirm fl" @click='deal_confirm'>
                        同意并继续
                    </div>
                </div>
            </div>
        </div>
    
        <div class="wrap register_container">

            <div class="bind_tab">
                <div class="have_num cursor fl" @click='have_num' v-bind:class="{ active: isActive}">
                    已有账号，请绑定
                </div>
                <div class="no_num cursor fl" @click='no_num' v-bind:class="{ active: !isActive }">
                    没有账号，请完善资料
                </div>
            </div>

            <div class="first_step" v-show="have_nums">
                <!-- 手机号、验证码 -->
                <div class="input_wrap">
                    <span class="input_tit fl">
                        账号：
                    </span>
                    <input type="text" name="" class="phone_input fl">
                </div>
                <div class="input_wrap">
                    <span class="input_tit fl">
                        密码：
                    </span>
                    <input type="text" name="" class="phone_input fl">
                </div>
                <div class="forget_num">忘记密码</div>
                <div class="register_btn cursor">
                    立即绑定
                </div>
            </div>

            <div class="first_step" v-show="no_nums">
                <!-- 手机号、验证码 -->
                <div class="input_wrap">
                    <span class="input_tit fl">
                        用户名：
                    </span>
                    <input type="text" name="" class="phone_input fl">
                </div>
                <div class="input_wrap">
                    <span class="input_tit fl">
                        密码：
                    </span>
                    <input type="text" name="" class="phone_input fl">
                </div>
                <div class="input_wrap">
                    <span class="input_tit fl">
                        确认密码：
                    </span>
                    <input type="text" name="" class="phone_input fl">
                </div>
                <div class="input_wrap">
                    <span class="input_tit fl">
                        手机号：
                    </span>
                    <input type="text" name="" class="phone_input fl">
                </div>
                
                <div class="input_wrap">
                        <span class="input_tit fl">
                            验证码：
                        </span>
                        <input type="text" name="" class="test_num fl ">
                        <div class="fl get_num cursor">获取验证码</div>
                    </div>

                <div class="deal"><el-checkbox v-model="checked" class="deal_btn"></el-checkbox>我已阅读并同意<span class="deal_book" @click='show_deal_mask'>《用户注册协议和隐私政策》</span></div>

                <div class="register_btn cursor">
                    立即绑定
                </div>
            </div>


        </div>
       <div class="wrap clear_both">             <productfooter></productfooter>         </div>
    </div>
    
    <script src="../js/browser.min.js"></script>
    <!-- <script src="https://cdn.jsdelivr.net/npm/vue@2.5.15/dist/vue.js"></script> -->
    <script src="../js/vue.js"></script>
    <!-- <script src="https://cdn.bootcss.com/babel-polyfill/7.0.0-rc.4/polyfill.js"></script> -->
    <script src="../js/element.js"></script>
    <script src="../js/axios.js"></script>         <script src="../js/qs.js"></script>
    <script src="../js/main.js"></script>
    <script  type="text/babel" >
       var app = new Vue({
            el: '#app',
            data() {
                return {
                    isActive: true,
                    have_nums: true,
                    no_nums: false,
                    checked:true,
                    deal_mask:false,

                };
            },
            created() {
                
            },
            mounted() {
                console.log(this.bodycss)
            },
            methods: {
                no_num() {
                    this.isActive = false
                    this.no_nums = true
                    this.have_nums = false
                },
                have_num() {
                    this.isActive = true
                    this.no_nums = false
                    this.have_nums = true
                },
                // 关闭注册协议
                deal_confirm(){
                    this.deal_mask=false
                },
                show_deal_mask(){
                    this.deal_mask=true
                }
            }
        })
        
    </script>
</body>

</html>